package com.xiaomaoguai.cxf.demo1;

import javax.xml.ws.Endpoint;

import org.junit.Test;

/**
 * @Description :
 * @FileName: MainTest.java
 * @Author :WeiHui.Zhang
 * @Data : 2015年8月17日 上午8:54:21
 * @Version:V1.00
 */
public class Server {

	@Test
	public void testWebService() throws InterruptedException {
		System.out.println("Starting Server");
		HelloServiceImpl implementor = new HelloServiceImpl();
		String address = "http://localhost:9090/helloWorld";
		Endpoint.publish(address, implementor);
		System.out.println("Server ready...");
		// Thread.sleep(5 * 60 * 1000);
		// System.out.println("Server exiting");
		// System.exit(0);
	}

}
